package com.yqs.model.service.impl;

import com.yqs.model.entity.AirQualityIndex;
import com.yqs.model.mapper.AirMapper;
import com.yqs.model.service.AirService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Ye QS
 * @version 0.1
 * @className AirServiceImpl
 * @description
 * @date 2024/8/14 19:43
 * @since jdk11
 */
@Service("airService")
public class AirServiceImpl implements AirService {
    @Autowired
    private AirMapper airMapper;

    @Override
    public List<AirQualityIndex> getAllAir() {
        List<AirQualityIndex> allAir = airMapper.getAllAir();
        return allAir;
    }

    @Override
    public void insert(AirQualityIndex airQualityIndex) {
        airMapper.insert(airQualityIndex);
    }
}
